package com.sdx.console.customer.dao;

import java.util.List;

import com.sdx.console.contract.entity.RightCustomerRole;
import org.beetl.sql.core.annotatoin.SqlResource;
import org.beetl.sql.core.mapper.BaseMapper;
import org.beetl.sql.core.engine.PageQuery;

import  com.sdx.console.customer.entity.*;

/**
 * 会员管理 Dao
 */
@SqlResource("customer.customerInfo")
public interface CustomerInfoDao extends BaseMapper<CustomerInfo>{
    public PageQuery<CustomerInfo> queryByCondition(PageQuery query);
    public void batchDelCustomerInfoByIds( List<String> ids);
    public List<CustomerUserMap> selectUserMap(String customerId,Integer userId);
    public PageQuery<CustomerInfo> queryByConditionCustomer(PageQuery query);
    public String customersRole(List<String> ids);
    public void revokeRole(String customerId,String remark);
    public void revokeRead(List<String> ids,String remark);

    ChoiceScore queryChoiceScore(String customerId, Integer choiceYear, Integer majorTypeId, String provinceId);

    public PageQuery<CustomerInfo>  queryEolByCondition(PageQuery query);
}
